{extend name="public/base" /}
{block name="content"}
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <a href="#">公司列表</a>
            </li>
            <li class="active">公司列表管理</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->

    <!-- Page Body -->
    <div class="page-body">

        <button type="button" tooltip="添加公司信息" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = 'add.html'"> <i class="fa fa-plus"></i> Add
        </button>
        <div class="row">
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="widget">
                    <div class="widget-body">
                        <div class="flip-scroll">
                            <table class="table table-bordered table-hover">
                                <thead class="">
                                <tr>
                                    <th class="text-center">ID</th>
                                    <th class="text-center">公司名称</th>
                                    <th class="text-center">公司logo</th>
                                    <th class="text-center">关于公司</th>
                                    <th class="text-center">区域</th>
                                    <th class="text-center">风格</th>
                                    <th class="text-center">类型</th>
                                    <th class="text-center">描述</th>
                                    <th class="text-center">图列</th>
                                    <th class="text-center">操作</th>
                                </tr>
                                </thead>
                                {volist name="data" id="value"}
                                <tbody>
                                <tr>
                                    <td align="center">{$value.id}</td>
                                    <td align="center">{$value.name}</td>
                                    <td align="center"><img src="__STATIC__/images/{$value.logo}" height="30"></td>
                                    <td align="center">{$value.about}</td>
                                    <td align="center">{$value.areaname|default='未设置'}</td>
                                    <td align="center">{$value.styles|default='未设置'}</td>
                                    <td align="center">{$value.types|default='未设置'}</td>
                                    <td align="center">{$value.desc|default='未设置'}</td>
                                    <td align="center">
                                        {volist name="$value.imgs" id="img"}
                                        <img src="__STATIC__/images/{$img}" height="30">
                                        {/volist}
                                    </td>
                                    <td align="center">
                                        <a href="{:url('Company/edit',array('id'=>$value['id']))}" class="btn btn-primary btn-sm shiny">
                                            <i class="fa fa-edit"></i>编辑
                                        </a>
                                        <a href="#" onClick="warning('确实要删除吗', '{:url('Company/del',array('id'=>$value['id']))}')" class="btn btn-danger btn-sm shiny">
                                            <i class="fa fa-trash-o"></i> 删除
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                                {/volist}
                            </table>
                        </div>
                        <div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- /Page Body -->
</div>
{/block}